#ifndef _OMTIMER_H_
#define _OMTIMER_H_

#include <Ogre.h>
#include "SyncManagerExport.h"

using namespace Ogre ;

class _SyncLibPluginExport OMTimer
{
public:
	OMTimer(void);
	~OMTimer(void);

	Real getMilliseconds(void);
	Real getSeconds(void);
	void reset(void);

	void setTimerRate(Real const rate);
	Real getTimerRate(void) {return (m_TimerRate);};

	void setTime(Real const val);

private:
	Timer * m_pTimer;
	Real m_ResetTime;
	Real m_TimerRate;
	Real m_RateChangeTime;
	Real m_StartTime;
} ;

#endif //_OMTIMER_H_
